

/** * 58.com Inc. * Copyright (c) 2005-2016 All Rights Reserved. */
 package com.bj58.ecdata.dashboard.controllers;

import javax.servlet.http.HttpServletRequest;

import com.bj58.ecdata.dashboard.databll.ZhishuZhaopinBLL;
import com.bj58.ecdata.dashboard.utils.MyServletRequestUtils;
import com.bj58.wf.mvc.ActionResult;
import com.bj58.wf.mvc.MvcController;
import com.bj58.wf.mvc.annotation.POST;
import com.bj58.wf.mvc.annotation.Path;

/** 
 * @author wangchonglu  2016年1月6日 
 *
 */
@Path("/zhishu/zhaopin/ajax")
public class ZSZPAjaxController extends MvcController{

	@Path("/getQushiData")
	@POST
	public ActionResult getQushiData(){
		try{
			HttpServletRequest request = beat.getRequest();
			String city = MyServletRequestUtils.getStringParameter(request, "city","");
			String cate = MyServletRequestUtils.getStringParameter(request, "cate","");
			String data = "";
			data = ZhishuZhaopinBLL.getQushiDataBll(city, cate);
			return ViewResult.jsonpView(data);
		}catch(Exception e){
			e.printStackTrace();
			return ViewResult.view("{}");
		}
		
	}
}

